package com.vito.oa.act.extend.service.impl;

import org.springframework.beans.factory.annotation.Autowired;

import com.alibaba.dubbo.config.annotation.Service;
import com.vito.act.model.ActExBussDefModel;
import com.vito.act.service.impl.ActExBussDefServiceImpl;
import com.vito.base.model.DataGrid;
import com.vito.oa.act.extend.dao.OaActExBussDefMapper;
import com.vito.oa.act.extend.model.OaActExBussDefModel;
import com.vito.oa.act.extend.service.OaActExBussDefService;
@Service
public class OaActExBussDefServiceImpl extends ActExBussDefServiceImpl implements OaActExBussDefService {
	@Autowired
	private OaActExBussDefMapper actExBussDefMapper;

	@Override
	public DataGrid<OaActExBussDefModel> queryActAllBussDef(
			ActExBussDefModel actExBussDefModel) {
		DataGrid<OaActExBussDefModel> data = new DataGrid<OaActExBussDefModel>();
		data.setRows(actExBussDefMapper.queryActExBussDefByPage(actExBussDefModel));
		data.setTotal(actExBussDefModel.getTotal());
		return data;
	}

	@Override
	public void updateActEExBussDef(OaActExBussDefModel actExBussDefModel) {
		actExBussDefMapper.updateActEExBussDef(actExBussDefModel);
	}

}



